License plate identification method and system thereof

ABSTRACT

A license plate identification method is provided, including the following steps of: obtaining a to-be-processed image; obtaining a plurality of feature maps including target features through a feature map extraction module; obtaining at least one region including the target feature in each feature map and giving each frame of each feature map scores corresponding to the target features through a target location extraction module; classifying each frame in each feature map according to the scores through a target candidate classification module and retaining at least one region that corresponds to character features; and obtaining a license plate identification result according to the region that corresponds to the character feature through a voting/statistics module.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a Divisional of pending U.S. patent application Ser. No. 16/980,747, filed Sep. 14, 2020 and entitled “LICENSE PLATE IDENTIFICATION METHOD AND SYSTEM THEREOF”, which is a 371 National Phase application of PCT Serial No. PCT/CN2019/072542, filed on Jan. 21, 2019, which claims priority to China Patent Application Serial No. 201810208466.9, filed on Mar. 14, 2018, the entirety of which is incorporated by reference herein.

FIELD OF THE INVENTION

The present invention relates in general to a license plate identification method and a license plate identification system, and in particular it relates to a license plate identification method and a license plate identification system that can recognize each character on a license plate using a neural network.

DESCRIPTION OF THE RELATED ART

License plate identification technology has been widely known to use image processing. The common technical means for obtaining license plate information using conventional license plate identification technology are license plate positioning, license plate character cutting, and license plate character identification. However, in practical applications, unrecognizable license plate features, license plate distortion, license plate deformation, light noise, and license plate breakage may occur in license plate images due to the different shooting angles or interference from light sources, time (day or night), weather (rain or shine), etc., thereby exacerbating identification accuracy. In addition, the existing license plate positioning technology usually finds the image location of the license plate based on the edge density value. If the license plate is stained, decorated, etc., the features of the edge density value may be destroyed, resulting in a significant decrease in the accuracy of the license plate positioning. Furthermore, if the obtained license plate is too skewed or deformed, it will be difficult to perform a cutting of the characters, and additional algorithms must be used to correct the license plate. The above problems illustrate how existing license plate identification technology has a low tolerance to the environment, and various additional image processing technologies must be used to increase the identification rate, but this will also reduce the speed of license plate identification. Therefore, how to provide a better license plate identification method to improve the tolerance of license plate identification to the environment and maintain high accuracy and fast identification speed is a problem that must be solved at present.

BRIEF SUMMARY OF THE INVENTION

An embodiment of the present invention provides a license plate identification method, which includes the following steps of: obtaining a to-be-processed image including all of the characters on a license plate; obtaining several feature maps including to character features of the to-be-processed image through a feature map extraction module; for each of the characters, extracting a block and a coordinate according to the feature maps through a character identification model based on a neural network; and obtaining a license plate identification result according to the respective blocks and the respective coordinates of the characters.

Another embodiment of the present invention provides a license plate identification system, which includes an image capturing unit and a processing unit. The image capturing unit is configured to capture at least one raw image. The processing unit is configured to: receive the raw image from the image capturing unit; obtain a to-be-processed image including all of characters on a license plate according to the raw image; obtain several feature maps including character features of the to-be-processed image through a feature map extraction module; for each of the characters, extract a block and a coordinate according to the feature maps through a character identification model based on a neural network; and obtain a license plate identification result according to the respective blocks and the respective coordinates of the characters.

Another embodiment of the present invention further provides a license plate identification method, which includes the following steps of: obtaining a to-be-processed image; obtaining several feature maps including target features through a feature map extraction module; obtaining at least one region including the target feature in each feature map and giving each frame of each feature map scores corresponding to the target features through a target location extraction module; classifying each frame in each feature map according to the scores through a target candidate classification module and retaining at least one region that corresponds to character features; and obtaining a license plate identification result according to the region that corresponds to the character feature through a voting/statistics module.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram showing an architecture of a license plate identification system according to an embodiment of the invention.

FIG. 2 is a flowchart of a license plate identification according to an embodiment of the invention.

FIG. 3A is a schematic diagram showing a current image according to an embodiment of the invention.

FIG. 3B is a schematic diagram showing an image change between a current image and a historical background image according to an embodiment of the invention.

FIGS. 4A-4D are schematic diagrams showing trained matrices used to generate feature maps according to some embodiments of the invention.

FIGS. 5A and 5B are schematic diagrams showing blocks which are determined to include characters according to an embodiment of the invention.

FIG. 6 is a schematic diagram of a voting/statistics module according to an embodiment of the invention.

FIG. 7A is a schematic diagram showing a current image according to an embodiment of the invention.

FIG. 7B is a schematic diagram showing a front image of a vehicle according to an embodiment of the present invention.

FIG. 8 is a schematic diagram showing a character region of a license plate according to an embodiment of the invention.

FIG. 9 shows a flowchart of a license plate identification method according to another embodiment of the present invention.

DESCRIPTION OF THE REFERENCE SIGNS IN DRAWINGS

-   -   100˜a license plate identification system     -   110˜a processing unit     -   120˜a storage unit     -   130˜an image capturing unit     -   140˜a display unit     -   801˜804˜blocks corresponding to characters     -   810˜a combined region of character blocks     -   820˜an expanded license plate image     -   S201˜S205, S901˜S906˜steps

DETAILED DESCRIPTION OF THE INVENTION

The other scopes applicable to the license plate identification method and the license plate identification system will be clearly and easily understood in the detailed description provided below. It must be understood that when the exemplary embodiments of the license plate identification method and the license plate identification system are presented, the following detailed description and specific embodiments are only for the purpose of description and not intended to limit the scope of the present invention.

FIG. 1 is a diagram showing a license plate identification system according to an embodiment of the present invention. The license plate identification system 100 can be implemented in an electronic device, such as a desktop computer, a notebook computer, or a tablet computer, and the license plate identification system 100 at least includes a processing unit 110. The processing unit 110 can be implemented in a variety of means, such as a dedicated hardware circuit or general-purpose hardware (for example, a single processor, a multi-processor with a parallel processing capability, a graphics processor, or another processor with a computing capability). When the codes or software related to each model and process of the present invention are executed, the functions described later are provided. The license plate identification system 100 further includes a storage unit 120 for storing the captured images, the data required during the execution process, and various electronic files, such as various algorithms and/or various models. The license plate identification system 100 may further include an image capturing unit 130, such as a monitor, a video camera, and/or a camera, for obtaining at least one image or continuous video images, and sending them back to the processing unit 110. The display unit 140 can be a display panel (for example, a thin-film liquid crystal display panel, an organic light-emitting diode panel, or another panel with a display capability) for displaying input characters, input numbers, input symbols, a movement track of dragging a mouse, or a user interface provided by an application program for users to watch. The license plate identification system 100 may further include an input device (not shown), such as a mouse, a stylus, or a keyboard, for the user to perform corresponding operations.

Please refer to FIG. 2, FIG. 2 shows a flow chart of a license plate identification method according to an embodiment of the invention. In Step S201, the image capturing unit 130 obtains an image which is to be processed (thereinafter, the image which is to be processed is referred to as “to-be-processed image”). In order to speed up the image processing, when the image capturing unit 130 is a monitor or a camera that can capture continuous images, the processing unit 110 can determine whether a current image shows a vehicle or another object entering a shooting range based on an operation which is performed to compare the current image with a historical image in advance. For example, the processing unit 110 may obtain a historical background image through a foreground and background subtraction module which operates according to several historical images, so that the processing unit 110 can quickly make a determination based on the historical background image and the current image. When the area of the image change or the amount of image change between the current image and the historical background image is greater than a predetermined value, the processing unit 110 determines that a vehicle or another object has entered the shooting range corresponding to the current image and then performs the following operation on the current image. For example, FIG. 3A is a diagram showing the current image, and FIG. 3B is a schematic diagram showing the image change between the current image and the historical background image. According to the content of FIG. 3B, it can be known that the area of the image change is about 37%. If the predetermined value is set to 35%, the processing unit 110 can determine that a vehicle or another object appears in the current image.

In Step S202, the processing unit 110 receives the to-be-processed image and obtains several feature maps through a feature map extraction module. The feature map extraction module can be trained through matrices for enhancing character features, which is mainly used to highlight characters such as English letters or numbers in the image. FIG. 4A-4D are schematic diagrams showing trained matrices used to generate feature maps according to some embodiments of the invention. In Step S203, after obtaining the feature maps, the processing unit 110 extracts blocks, each of which corresponds to one character, and the corresponding coordinates through a character identification model based on the feature maps. The character identification model is a neural-network-based module, which mainly uses multiple images corresponding to various letters (i.e. A˜Z) and numbers (i.e. 0-9) as training data to accurately identify the block and the location of each character in the image. For example, each of the blocks shown in FIG. 5A is a block that is determined to include a character. The character identification model can directly find each of the blocks corresponding to the characters, without the need to divide the characters in the license plate in advance. However, as shown in FIG. 5A, some blocks without any characters are incorrectly determined to include characters, for example, since the image of the surrounding environment resembles a character or since noise occurs in the images. Thus, the processing unit 110 may further select regions with higher reliability (for example, the processing unit 110 selects a region where several blocks overlap) as blocks having characters and obtain the coordinates of the regions at the same time as the basis for the arrangement of the sequence of the characters on the license plate. For example, as shown in FIG. 5B, the regions represented by the thick frame lines are the finally extracted regions with the characters. The erroneous blocks can be effectively filtered by the above manner.

Then, in Step S204, after obtaining all the characters and the corresponding coordinates of the characters, the processing unit 110 obtains a license plate identification result according to the characters and the sequence of the corresponding coordinates. According to an embodiment of the present invention, the processing unit 110 may further vote for multiple license plate images through a voting/statistics module to improve the accuracy of the license plate identification result. After obtaining all the characters on the license plate and the arrangement sequence of the characters, the processing unit 110 can divide the license plate into at least two groups according to a license plate grouping rule. The license plate grouping rules may include a license plate naming grouping rule, an English character region and number character region grouping rule, a dash grouping rule, a character relative position grouping rule, etc. After the division of the license plate, the processing unit 110 then votes for the identification results of each of the groups. When, for each of the groups, there is one identification result with a voting score that is higher than a threshold, a final license plate identification result is generated. For example, FIG. 6 is a schematic diagram of a voting/statistics module according to an embodiment of the invention. In this embodiment, the processing unit 110 uses the dash grouping rule to divide the license plate into two groups based on the position of the dash (that is, the left half and the right half of the dash). Then, after obtaining the identification results of the two groups, the processing unit 110 votes for the different identification results of each group and accumulates the voting scores if there are duplicate identification results for the same group. For example, as shown in FIG. 6, the first repetition of “2806” appears in the fifth set of identification results, and the voting score of “2806” in the fifth set of identification results is accumulated to 2; the first repetition of “J3” appears in the fourth set of identification results, and the voting score of “J3” in the fourth set of identification results is accumulate to 2; and so on. Assuming that the threshold for the voting scores has been preset to 4, the group on the right half of the dash can be determined as “J3” in the sixth identification result set, and the group on the left half of the dash can be determined as “2806” in the seventh identification result set. Then, the processing unit 110 can output the final license plate identification result as “2806-J3” after completing the seventh set of identification results for the license plate.

According to another embodiment of the present invention, the processing unit 110 may further assign different weights to the identification results according to the time sequence of the identification results. For example, a newer identification result is assigned a larger weight, while an older identification result is assigned a smaller weight, thereby accelerating the convergence speed of the final license plate identification result.

In addition, according to another embodiment of the present invention, in order to accelerate the processing speed of the processing unit 110 for the information of the license plate, after obtaining a current image including a license plate image, the processing unit 110 may obtain a front image or a rear image from the current image through a vehicle front image capturing module or a vehicle rear image capturing module, thereby reducing the area of the to-be-processed image. The vehicle front image capturing module or the vehicle rear image capturing module uses several image features (such as Haar Feature, HOG, LBP, etc.) with classifiers (cascade classifiers, Ada boost, or SVM) to train various vehicle front images or vehicle rear images, thereby obtaining a front image or a rear image of the vehicle from the current image. For example, FIG. 7A is a schematic diagram showing the current image, and FIG. 7B is a schematic diagram showing the front image of the vehicle which is obtained through the vehicle front image capturing module.

According to another embodiment of the present invention, after obtaining the front image or rear image of the vehicle, in order to further reduce the size of the area of the image which is processed by the processing unit 110, the processing unit 110 may further obtain the region near the license plate from the front image or rear image of the vehicle through a license plate character region detection model. The license plate character region detection model also trains each character image by using several image features (such as Haar Feature, HOG, LBP, etc.) with classifiers (cascade classifiers, Ada boost, or SVM) to find each character from the front image or rear image of the vehicle. For example, as shown in FIG. 8, the processing unit 110 finds four regions 801˜804 including characters in the front head image of the vehicle through the license plate character region detection model. Then, the processing unit 110 combines the regions 801˜804 to obtain a larger region 810 and expands the region 810 according to the format of the license plate to obtain another region containing all the characters on the license plate. For example, there are six characters on the license plate, and the license plate character region detection model finds only four regions with characters in the front image. Therefore, in order to ensure that the to-be-processed image contains all the characters in the license plate, the processing unit 110 may further determine the magnification of the outward expansion according to the number of found characters. For example, as shown in FIG. 8, the processing unit 110 has found four characters, and, thus, the processing unit 110 expands the region 810 outward from the four sides of the region 810 by two times to obtain another region (that is, the region 820 shown in FIG. 8), which makes sure that all characters are contained in the image to-be-processed. In other words, if the processing unit 110 finds only one region including characters, the processing unit 110 adaptively increases the magnification of the expansion (for example, the processing unit 110 expands the region to the left and right by ten times) to ensure that all characters are contained in the to-be-processed image. The magnification of the expansion can be adjusted according to the user's requirements. The foregoing embodiments are only for illustrative purposes, and the present invention is not limited thereto. Compared with the front image or rear image of the vehicle, the area of the to-be-processed image which is obtained through the license plate character region detection model is accurately reduced, which further increase the speed of the calculation. It is worth noting that, because the main function of the license plate character region detection model is only to find regions in which characters may presented, not to accurately identify characters. Thus, compared to the character identification model, the license plate character region detection model is a weak classifier, that is, its detection accuracy is low but the calculation speed is faster. In addition, the license plate character region detection model and the front image capturing module or rear image capturing module use different image features and classifiers.

In Step S205, in order to further improve the accuracy of the character identification model, the processing unit 110 further uses images and corresponding identification results as training data to update the character identification model. The above-mentioned identification results include correct license plate identification results and incorrect license plate identification results, thereby reducing the identification error of the character identification model and indirectly speeding up the processing speed of the license plate identification system.

FIG. 9 shows a flowchart of a license plate identification method according to another embodiment of the present invention. In Step S901, the image capturing unit 130 obtains at least one to-be-processed image. In Step S902, the processing unit 110 receives the obtained to-be-processed image from the image capturing unit 130 and obtains several feature maps through a feature map extraction module. The information contained in the feature maps includes several target features corresponding to different spatial frequencies (for example, from a low frequency to a high frequency), and the target features include character features of the license plate, the features of the license plate appearance, background features, and vehicle information features (such as direction mirrors, vehicle models, wheels, etc. which represent the features of the vehicle). In addition, the feature map extraction module can be trained through matrices containing the aforementioned target features. In Step S903, after obtaining the feature maps, the processing unit 110 finds out the regions including the aforementioned target features according to the feature maps through a target location extraction module.

According to an embodiment of the present invention, the processing unit 110 may extract one frame every predetermined number of pixels on the feature map by clustering or a custom size, determine the features that may be contained in each frame according to the feature map extraction module, and give each frame the scores each which corresponds to one target feature. Alternatively, according to another embodiment of the present invention, the processing unit 110 first obtains a target sensitivity score drawing of the feature maps through a simple classifier. In other words, the processing unit 110 finds several target feature points or target feature regions having the target features on the feature maps and circles several regions located near the target feature points by using frames with different sizes, and gives the regions the scores that correspond to the target features.

Next, after the processing unit 110 obtains all the scores that correspond to the target features of each frame, the method proceeds to Step S904. In Step S904, the processing unit 110 retains only the target features whose scores are largest and exceed a predetermined value by means of non-maximum value suppression and through a target candidate classification module. For example, for a certain frame, if the score corresponding to the background feature is the largest, and it is higher than a predetermined value, the processing unit 110 classifies the frame as corresponding to the background feature. In addition, for a certain frame, when all of the scores that correspond to the target features are not higher than the predetermined value, the frame is classified as corresponding to a non-target feature. In addition, the processing unit 110 may further combine adjacent frames with the same target feature into a larger region through a target candidate classification module, so as to facilitate the subsequent identification process. Then, the processing unit 110 only reserves the regions corresponding to the character features, and the method proceeds to Step S905. In step S905, the processing unit 110 obtains a license plate identification result according to the characters and the sequence of the coordinates (for example, from left to right, from top to bottom). As mentioned above, the processing unit 110 can vote on several images of the license plate through the aforementioned voting/statistics module to improve the accuracy of the license plate identification result. The identification of the license plate in Step S905 is similar to that in Step S204 and will not be described here to simplify the description.

Then, in Step S906, the processing unit 110 further uses to-be-processed images and corresponding identification results as training data to update the character identification model. The aforementioned identification results include correct license plate identification results and incorrect license plate identification results, thereby reducing the identification error of the character identification model.

According to the license plate identification method and the license plate identification system proposed in some embodiments of the present invention, the identification speed can be maintained fast in an environment with poor viewing angle or complicated changes through the aforementioned license plate image capturing step and license plate character identification step. Moreover, by continuously using the identification results as training data, the error of the license plate identification can be reduced, and the calculation speed of the license plate identification system can be indirectly sped up.

The features of the embodiments are described above, so that those skilled in the technical field can clearly understand the form of this specification. Those skilled in the art can understand that they can use the disclosure of the present invention as a basis to design or modify other processes and structures to accomplish the same purpose as the above-mentioned embodiment and/or achieve the same advantages as the above-mentioned embodiment. Those skilled in the technical field can also understand that equivalent structures that do not depart from the spirit and scope of the present invention can be arbitrarily changed, substituted and modified without departing from the spirit and scope of the present invention. 

1. A license plate identification method, comprising steps of: obtaining a to-be-processed image; obtaining a plurality of feature maps including target features through a feature map extraction module; obtaining at least one region including the target feature in each feature map and giving each frame of each feature map scores corresponding to the target features through a target location extraction module; classifying each frame in each feature map according to the scores through a target candidate classification module and retaining at least one region that corresponds to character features; and obtaining a license plate identification result according to the region that corresponds to the character feature through a voting/statistics module.
 2. The license plate identification method as claimed in claim 1, wherein the target features include the character features corresponding to different spatial frequencies, features of a license plate appearance, background features, or vehicle features.
 3. The license plate identification method as claimed in claim 1, further comprising a step of: extracting one frame every predetermined number of pixels on the feature map by clustering or a custom size and giving each frame of each feature map the scores that correspond to the target features through the target location extraction module.
 4. The license plate identification method as claimed in claim 1, further comprising a step of: obtaining at least one target feature point on the feature map through a simple classifier, circling a plurality of regions located near the target feature points by using frames with different sizes, and giving each frame on the feature map the scores that correspond to the target features through the feature map extraction module.
 5. The license plate identification method as claimed in claim 1, further comprising a step of: retaining the target features whose scores are largest and exceed a predetermined value by means of non-maximum value suppression and through the target candidate classification module.
 6. The license plate identification method as claimed in claim 1, further comprising steps of: receiving license plate identification results; dividing the plurality of license plate identification results into at least two groups according to a license plate grouping rule through the voting/statistics module; voting for each sub-identification result in each of the groups through the voting/statistics module; and when, for each group, there is one sub-identification result having a voting score that is higher than a threshold value, generating a final license plate identification result according the sub-identification results through the voting/statistics module.
 7. The license plate identification method as claimed in claim 1, further comprising a step of: updating the feature map extraction module according to the license plate identification result.
 8. The license plate identification method as claimed in claim 1, further comprising following steps of: receiving a raw image; comparing the raw image with a historical background image to determine an amount of image change; and determining whether the amount of image change is greater than a predetermined value, wherein when the amount of image change is greater than the predetermined value, the to-be-processed image comprising all of the characters is generated.
 9. The license plate identification method as claimed in claim 1, further comprising following steps of: receiving a raw image; obtaining a vehicle front image or a vehicle rear image from the raw image through a vehicle front image capturing module or a vehicle rear image capturing module by using a first image feature and a first classifier; obtaining at least one character block from the vehicle front image or the vehicle rear image through a license plate character region detection model by using a second image feature and a second classifier; determining a magnification according to the number of character blocks; and obtaining the to-be-processed image comprising all of the characters according to the magnification through the license plate character region detection model.
 10. The license plate identification method as claimed in claim 1, further comprising steps of: receiving license plate identification results; assigning a weight to each license plate identification result according to a time sequence of all the license plate identification results; and generating the final license plate identification result according to the license plate identification results that are assigned with the weights.
 11. A license plate identification system, comprising: an image capturing unit configured to capture at least one raw image; and a processor configured to: receive the raw image from the image capturing unit; obtain a to-be-processed image according to the raw image; obtain a plurality of feature maps including target features through a feature map extraction module; obtain at least one region including the target feature in each feature map and give each frame of each feature map scores corresponding to the target features through a target location extraction module; classify each frame in each feature map according to the scores through a target candidate classification module and retain at least one region that corresponds to character features; and obtain the license plate identification result according to the region that corresponds to the character feature through a voting/statistics module.
 12. The license plate identification system as claimed in claim 11, wherein the target features include the character features corresponding to different spatial frequencies, features of a license plate appearance, background features, or vehicle features.
 13. The license plate identification system as claimed in claim 11, wherein the processor is further configured to: extract one frame every predetermined number of pixels on the feature map by clustering or a custom size and give each frame of each feature map the scores that correspond to the target features through the target location extraction module.
 14. The license plate identification system as claimed in claim 11, wherein the processor is further configured to: obtain at least one target feature point on the feature map through a simple classifier, circle a plurality of regions located near the target feature points by using frames with different sizes, and give each frame on the feature map the scores that correspond to the target features through the feature map extraction module.
 15. The license plate identification system as claimed in claim 11, wherein the processor is further configured to: retain the target features whose scores are largest and exceed a predetermined value by means of non-maximum value suppression and through the target candidate classification module.
 16. The license plate identification system as claimed in claim 11, wherein the processor is further configured to: receive license plate identification results; divide the plurality of license plate identification results into at least two groups according to a license plate grouping rule through the voting/statistics module; vote for each sub-identification result in each of the groups through the voting/statistics module; and when, for each group, there is one sub-identification result having a voting score that is higher than a threshold value, generate a final license plate identification result according the sub-identification results through the voting/statistics module.
 17. The license plate identification system as claimed in claim 11, wherein the processor is further configured to: update the feature map extraction module according to the license plate identification result.
 18. The license plate identification system as claimed in claim 11, wherein the processor is configured to: compare the raw image with a historical background image to determine an amount of image change; and determine whether the amount of image change is greater than a predetermined value, wherein when the amount of image change is greater than the predetermined value, the to-be-processed image comprising all of the characters is generated.
 19. The license plate identification system as claimed in claim 11, wherein the processing unit is further configured to: obtain a vehicle front image or a vehicle rear image from the raw image through a vehicle front image capturing module or a vehicle rear image capturing module by using a first image feature and a first classifier; obtain at least one character block from the vehicle front image or the vehicle rear image through a license plate character region detection model by using a second image feature and a second classifier; determine a magnification according to the number of character blocks; and obtain the to-be-processed image including all of the characters according to the magnification through the license plate character region detection model.
 20. The license plate identification system as claimed in claim 11, wherein the processing unit is further configured to: receive license plate identification results; assign a weight to each license plate identification result according to a time sequence of all the license plate identification results; and generate the final license plate identification result according to the license plate identification results that are assigned with the weights. 